package com.tron.base;

/**
 * 基础异常类，封装错误code和错误message
 */
public class BaseException extends RuntimeException {
    private Integer code;

    public BaseException(BaseEnum baseEnum) {
        super(baseEnum.getMessage());
        this.code = baseEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }
}
